package cn.northsea.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Data
@Component
public class User {
    private Integer userId;
    private String userUsername;
    private String userPassword;
    private String userFullname;
    private String userPhone;
    private String userGender;
    private Integer userAge;
    private String userAddress;
    private Integer userStatus;
    private Integer deptId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;

    public User() {
    }

    public User(Integer userId, String userUsername, String userPassword, String userFullname, String userPhone, String userGender, Integer userAge, String userAddress, Integer userStatus, Integer deptId) {
        this.userId = userId;
        this.userUsername = userUsername;
        this.userPassword = userPassword;
        this.userFullname = userFullname;
        this.userPhone = userPhone;
        this.userGender = userGender;
        this.userAge = userAge;
        this.userAddress = userAddress;
        this.userStatus = userStatus;
        this.deptId = deptId;
    }
}
